package com.sos.entity.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

/**
 * @author 港某人
 * @date 2021/3/7 21:21
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Doctor {

    private String objId;
    private String account;
    private String name;
    private String subject;
    private Integer totalCount;
    private Integer surplusCount;
    private String remark;
    private String status;
    private String introduce;
    private String workTime;

    public Doctor(Account account) {
        this.objId = UUID.randomUUID().toString();
        this.account = account.getAccount();
        this.name = account.getName();
        this.subject = account.getSubject();
        this.status = "出诊";
    }

}
